for m in context.portal_catalog.searchResults(portal_type='Model'):
    model = m.getObject()
    model.repermissionModel()
    
return "Done."